package com.cn.dao;

import java.util.Date;
import java.util.List;

import com.cn.domain.Product;

public interface ProductDao {

	void saveProduct(Product p);
	
	void deleteProduct(Product p);
	
	public List<Product> getListByCondition(Product p);
	
	Product getProductById(Integer id);
	
	void updateProduct(Product p);
	
	int getTotalCount(String key,String category);
	
	List<Product> getProductList(String key,String category,int start,int count);
	
	List<Product> getProductByTipName(String tipname);
	
	public void updateProductNum(int id,int num);

	
	public List<Product> getTopSaleList(Date date1,Date date2);

}
